package com.team.bus.module.user.service;

import java.util.List;
import java.util.Map;

import org.zjframework.traceframe.common.service.ICommonService;

import com.team.bus.module.common.pagemodel.SessionInfo;
import com.team.bus.module.user.model.User;

public interface IUserService extends ICommonService {

	/**
	 * 通过用户id获取资源列表
	 * @param id
	 * @return
	 */
	public List<String> gainMenus(String hql, Map<String, Object> param);
	
	
	/**
	 * 验证旧密码是否输入正确
	 * @param sessionInfo
	 * @param oldPwd
	 * @param pwd
	 * @return
	 */
	public boolean editCurrentUserPwd(SessionInfo sessionInfo, String oldPwd, String pwd);
	
	/**
	 * 为了解决如下报错 赵继
	 * a different object with the same identifier value
	 *  was already associated with the session
	 * @param entity
	 * @return
	 */
	public <T> T updateRows(T entity);
	
	/**
	 * 获取系统session中的User对象
	 * @return
	 */
	public User gainSessionUser();
}




